package com.qiyeji.real_estate.service;

import com.qiyeji.real_estate.entity.projectPhase;
import com.qiyeji.real_estate.entity.timeTable;
import com.qiyeji.real_estate.entity.timeTableKey;
import com.qiyeji.real_estate.mapper.projectPhaseMapper;
import com.qiyeji.real_estate.mapper.timeTableMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProjectPhaseService {
    @Autowired
    projectPhaseMapper projectPhaseMapper;

    public int insert(projectPhase record){
        return projectPhaseMapper.insert(record);
    }

    public int delete(String key){
        return projectPhaseMapper.deleteByPrimaryKey(key);
    }

    public int updateByPrimaryKey(projectPhase record){
        return projectPhaseMapper.updateByPrimaryKey(record);
    }

    public projectPhase selectByPrimaryKey(String key){
        return projectPhaseMapper.selectByPrimaryKey(key);
    }

    public List<projectPhase> getAllProjectPhase(){
        return projectPhaseMapper.getAllProjectPhase();
    }

    public List<projectPhase> fuzzyQuery(String key){
        return projectPhaseMapper.fuzzyQuery(key);
    }
}
